import request from '@/utils/request'

// 药品目录列表
export function durgCategoryList(data) {
  return request({
    url: '/durgCategory/list',
    method: 'get',
    data: data
  })
}
// 删除药品目录
export function deletedurgCategory(data) {
  return request({
    url: '/durgCategory/del/' + data.id,
    method: 'get',
    data: data
  })
}

// 修改药品目录
export function updateDurgCategory(data) {
  return request({
    url: '/durgCategory/update',
    method: 'post',
    data: data
  })
}

// 新增药品目录
export function addDurgCategory(data) {
  return request({
    url: '/durgCategory/add',
    method: 'post',
    data: data
  })
}


// 药品列表
export function durgList(data) {
  return request({
    url: '/durglib/list',
    method: 'post',
    data: data
  })
}
// 新增药品
export function addDurg(data) {
  return request({
    url: '/durglib/add',
    method: 'post',
    data: data
  })
}
// 更改药品
export function updateDurg(data) {
  return request({
    url: 'durglib/update',
    method: 'post',
    data: data
  })
}

// 删除药品
export function delDurg(data) {
  return request({
    url: '/durglib/del/' + data.id,
    method: 'post',
    data: data
  })
}

// 药品单位列表
export function durgUnitList(data) {
  return request({
    url: '/durgunit/data',
    method: 'get',
    data: data
  })
}















